local tiangoudun__nioh_shield_skill = fk.CreateSkill {

  name = "#tiangoudun__nioh_shield_skill",
  attached_equip = "tiangoudun__nioh_shield",

  tags = { Skill.Compulsory, },

}



tiangoudun__nioh_shield_skill:addEffect(fk.PreCardEffect, {
  name = "#tiangoudun__nioh_shield_skill",
  can_trigger = function(self, event, target, player, data)
    local effect = data 
    return player.id == effect.to and player:hasSkill(tiangoudun__nioh_shield_skill.name) and
        effect.card.trueName == "slash" and effect.card.color == Card.Black
  end,
  on_use = function(self, event, target, player, data)
    player.room:broadcastPlaySound(Thbattle_path .. "audio/card/male/tiangoudun__nioh_shield")
    data.nullified = true
  end
})

return tiangoudun__nioh_shield_skill